package com.sinodata.bsm.common.vo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * EventRemark entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "EVENT_REMARK")
public class EventRemark implements java.io.Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 8554162767018483156L;

    // Fields  
    private Long id;
    private Long eventId;
    private String user;
    private Date time;
    private String remarks;

    // Constructors

    /** default constructor */
    public EventRemark() {
    }

    /** minimal constructor */
    public EventRemark(Long id) {
        this.id = id;
    }

    /** full constructor */
    public EventRemark(Long id, Long eventId, String user, Date time, String remarks) {
        this.id = id;
        this.eventId = eventId;
        this.user = user;
        this.time = time;
        this.remarks = remarks;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "EVENT_REMARK_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "EVENT_ID", precision = 18, scale = 0)
    public Long getEventId() {
        return this.eventId;
    }

    public void setEventId(Long eventId) {
        this.eventId = eventId;
    }

    @Column(name = "USER_", length = 32)
    public String getUser() {
        return this.user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    @Column(name = "TIME", length = 7)
    public Date getTime() {
        return this.time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Column(name = "REMARKS", length = 1024)
    public String getRemarks() {
        return this.remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "EventRemark [id=" + id + ", eventId=" + eventId + ", user=" + user + ", time=" + time + ", remarks=" + remarks + "]";
    }

}